export const getAllArticles = async () => {
  const response = await fetch("/api/articles");
  if (!response.ok) {
    throw new Error("Network response was not ok");
  }
  const data = await response.json();
  return data;
};

export const getArticleById = async (id: string) => {

  // return json;
};

export const createArticle = (data: any) => {};

export const updateArticle = (id: string, data: any) => {};
